import request from '@/utils/request'

// 查询咖啡豆信息列表
export function listCoffee_bean(query) {
  return request({
    url: '/system/coffee_bean/list',
    method: 'get',
    params: query
  })
}

// 查询咖啡豆信息详细
export function getCoffee_bean(coffeeId) {
  return request({
    url: '/system/coffee_bean/' + coffeeId,
    method: 'get'
  })
}

// 新增咖啡豆信息
export function addCoffee_bean(data) {
  return request({
    url: '/system/coffee_bean',
    method: 'post',
    data: data
  })
}

// 修改咖啡豆信息
export function updateCoffee_bean(data) {
  return request({
    url: '/system/coffee_bean',
    method: 'put',
    data: data
  })
}

// 删除咖啡豆信息
export function delCoffee_bean(coffeeId) {
  return request({
    url: '/system/coffee_bean/' + coffeeId,
    method: 'delete'
  })
}
